package com.bjtang.book.entiy;

import java.time.LocalDateTime;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Null;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

@Data
public class BrowseTable {
	// 主键
	@TableId(type = IdType.AUTO)
	private Long browseId;
	// 点赞还是点踩
	@Max(value = 1)
	@Min(value = 0)
	private Integer upDownIs;
	// 文章编号
	private Long articleNumber;
	// 创建者ID
	@Null
	private Long founder;
	// 创建时间
	@Null
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime creationTime;
}
